import Vue from 'vue'
import Router from 'vue-router'
import menu from '@/components/menu'
import HelloTest from '@/components/Hello'
import zhilin from '@/components/zhilin'
import testUseElement from '@/components/testUseElement'
import testFunction from '@/components/testFunction'
import parent from '@/components/parent'


import sort from '@/components/sort'
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'menu',
            component: menu
        },
        {
            path: '/HelloTest',
            name: 'HelloTest',
            component: HelloTest
        },
        {
            path: '/zhilin',
            name: 'zhilin',
            component: zhilin
        },
        {
            path: '/sort',
            name: 'sort',
            component: sort
        },
        {
            path: '/testUseElement',
            name: 'testUseElement',
            component: testUseElement
        },
        {
            path: '/testFunction',
            name: 'testFunction',
            component: testFunction
        },
        {
            path: '/parent',
            name: 'parent',
            component: parent
        }
    ]
})